import request from '@/utils/request'

export function listALLStatus() {
  return request({
    url: '/status/status/list', // 需与后端 RequestStatusController 的映射一致
    method: 'get'
  });
}

// 查询status列表
export function listStatus(query) {
  return request({
    url: '/status/status/list',
    method: 'get',
    params: query
  })
}

// 查询status详细
export function getStatus(statusId) {
  return request({
    url: '/status/status/' + statusId,
    method: 'get'
  })
}

// 新增status
export function addStatus(data) {
  return request({
    url: '/status/status',
    method: 'post',
    data: data
  })
}

// 修改status
export function updateStatus(data) {
  return request({
    url: '/status/status',
    method: 'put',
    data: data
  })
}

// 删除status
export function delStatus(statusId) {
  return request({
    url: '/status/status/' + statusId,
    method: 'delete'
  })
}
